package cc.aiee.wxpay.core.pojo.dto;

import cc.aiee.core.interfaces.PayJsonBeanInterface;
import cc.aiee.core.kit.KitJson;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class WxPayUnifiedorderDTO extends WxPayXmlDTO implements PayJsonBeanInterface {

	private String appid;
	private String mch_id;
	private String device_info;
	private String nonce_str;
	private String sign;
	/**
	 * 以下字段在return_code 和result_code都为SUCCESS的时候有返回
	 */
	private String trade_type;
	private String prepay_id;

	@Override
	public String toJson() {

		return KitJson.toJSONString(this);
	}

	@Override
	public String toJson(boolean prettyFormat, boolean ignoreNull) {
		return KitJson.toJSONString(this, prettyFormat, ignoreNull);
	}
}
